export interface ApiResponse<T>{
  code:number
  msg:string
  data?: T
  token?:string
}

export interface UserResponse<T>{
  code:number
  msg:string
  data: T
  token?:string
}

export interface ImageResponse<T>{
  code:number
  msg:string
  imgUrl:string
}

export interface ApiResponseRow<T>{
  code:number
  msg:string
  totle: number
  rows?:T
}
export interface postRespones{
  code:number
  msg:string
}

// 分页响应结构
export interface PaginatedResponse<T> {
  currentPage: number;
  totalPages: number;
  totalItems: number;
  items: T[];
}

export interface InteractionItem {
  id: number;
  targetId: number;
  targetType: number;
  actionType: number;
}

export interface CheckCollectedResponse {
  isCollected: boolean; // 更语义化的字段名
}

